gtkselection: fix warnings of unused vars on win32
authorIgnacio Casal Quinteiro <icq@gnome.org>
Tue, 22 Jul 2014 15:21:37 +0000 (17:21 +0200)
committerIgnacio Casal Quinteiro <icq@gnome.org>
Tue, 22 Jul 2014 15:22:00 +0000 (17:22 +0200)
gtk/gtkselection.c

index a2da6739c836b04f9061ce11d0bfae6480fefbc3..380a101f87fbec7398265957bca175d0d15cd94e 100644 (file)
@@ -1361,14 +1361,15 @@ selection_set_compound_text (GtkSelectionData *selection_data,
                             const gchar      *str,
                             gint              len)
 {
+  gboolean result = FALSE;
+
+#ifdef GDK_WINDOWING_X11
   gchar *tmp;
   guchar *text;
   GdkAtom encoding;
   gint format;
   gint new_length;
-  gboolean result = FALSE;
 
-#ifdef GDK_WINDOWING_X11
   if (GDK_IS_X11_DISPLAY (selection_data->display))
     {
       tmp = g_strndup (str, len);